package cn.zhangxin.newyear.system.department.mapper;

import cn.zhangxin.newyear.system.department.domain.Department;
import cn.zhangxin.newyear.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zx
 * @since 2023-01-15
 */
@Repository
public interface DepartmentMapper extends BaseMapper<Department> {
    //父部门
    Department findByParent(Long parent_id);
    //批量新增
    void batchAdd(List<Department> depts);
    //查询每月新增人数
}
